TextShape AddHatchPatternHelixFilling

Adds a helix type pattern to the shape

 
public void AddHatchPatternHelixFilling(float helixGap, HelixStyle style, HatchOffsetAlgorithm algorithm, HatchCornerStyle cornerStyle)

 

Return value

void 

 

Parameters

float helixGappitch of the helix
HelixStyle styleStyle of the Helix
HatchOffsetAlgorithm algorithmHatchOffsetAlgorithm to be used
HatchCornerStyle cornerStyleCorner style of the hatch

 

Example

Copy
TextShape textShape = new TextShape();

textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.DotDurationMicroseconds = 2;

textShape.HorizontalAlign = TextHorizontalAlign.Left;
textShape.VerticalAlign = TextVerticalAlign.Center;
textShape.WordWrap = true;
textShape.LineSpaceStyle = TextLineSpaceStyle.Factor;
textShape.LineSpace = 1f;

textShape.AddHatchPatternHelixFilling(0.2f, HelixStyle.InwardToOut, HatchOffsetAlgorithm.DirectOffset, 
        HatchCornerStyle.SmoothWithArcs);

vectorImage.AddText(textShape);